<template>
  <div>
    <div class="page2">
      webpack子页面2 
    </div>
    <br />
    <button @click="goMain">返回主应用</button>
  </div>
</template>

<script setup>
import {
  reactive,
  onMounted,
  getCurrentInstance,
  computed,
  onActivated
} from 'vue'

const { proxy } = getCurrentInstance()

const goMain = () => {
  proxy.$parentRouter.push('/main')
}
</script>

<style scoped></style>
